<?php namespace sacvoyage;

use \Iterator;

class ArrayToObjectIterator implements Iterator {

	public function __construct(&$iterator) {
		$this->_iterator=&$iterator;
	}

	public function rewind() {
		$this->_iterator->rewind();
	}

	public function key() {
		return $this->_iterator->key();
	}

	public function current() {
		return new Object($this->_iterator->current());
	}
	
	public function next() {
		$this->_iterator->next();
	}

	public function valid() {
		return $this->_iterator->valid();
	}

	private $_iterator;

}


?>
